//
//  NetPictureMgr.m
//  carcareIOS
//
//  Created by wr on 16/1/26.
//  Copyright © 2016年 baozun. All rights reserved.
//

#import "NetPictureMgr.h"
#import "NetEngineServer.h"
#import "NetDealMgr.h"

@implementation NetPictureMgr

+ (NetPictureMgr *)uploadPictureWithDic:(NSDictionary *)dic
{
    return [__SELF request:@"/appImageUpload/uploadImg" withParams:dic type:REQUEST_POST];
}

-(NSDictionary *)requestCommonParams{
    if (![USERINFO.session isNotNil]) {
        return nil;
    }
    return @{@"userid":@(USERINFO.userID),@"session":USERINFO.session};
}


-(id<NetRequestConfig>)requestDefaultConfig{
    return [NetEngineServer iczImageConfig];
}

-(NSDictionary *)requestFinalParamsWithSplicedParams:(NSDictionary *)spliced{
    return [NetDealMgr paramsAddSignWithParams:spliced];
}

@end

